AddValue
TheAddValue
method adds a value of the specified type to the focused property.
ODStorageUnitView AddValue (in ODValueType type);
type
- The type of value to be added.
- return value
- A reference to this storage-unit view.
DISCUSSION
If the focused property does not already contain a value of the specified type, the new value is added and the storage unit that created this storage-unit view is focused on the newly added value. Otherwise, the storage unit is focused on the existing value with the specified value type.The focus context of this storage-unit view remains unchanged.
EXCEPTIONS
If the storage-unit cursor for this storage-unit view does not represent a legal focus context for the storage unit that created this storage-unit view, this method throws exceptions raised by the
kODErrIllegalNullValueTypeInput
- The specified value type is null.
kODErrInvalidValueType
- The specified value type is improperly formed or illegal.
kODErrUnfocusedStorageUnit
- The focus context of this storage-unit view is not a property or a value.
FocusWithCursor
method of that storage unit.SEE ALSO
TheODValueType
type (page 904).
TheODStorageUnitView::Remove
method (page 754).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help